package com.vehicle.biz.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

@Getter
@Setter
public class VehicleChangeEvent extends ApplicationEvent {
    //车辆id 用于标识需要处理的车辆
    private Long id;

    public VehicleChangeEvent(Object source,Long id) {
        super(source);
        //将车辆id赋值给事件对象，便于监听器处理
        this.id = id;
    }
}
